<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>拓展AI</title>

		<link rel="stylesheet" href="https://cdnjs.loli.net/ajax/libs/mdui/0.4.3/css/mdui.min.css">
		<script src="https://cdnjs.loli.net/ajax/libs/mdui/0.4.3/js/mdui.min.js"></script>
		<link href="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.0.3/styles/monokai-sublime.min.css" rel="stylesheet">
		<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/highlight.min.js"></script>
		<script>hljs.initHighlightingOnLoad();</script>
		<style type="text/css">
			pre{
				background-color: rgb(40,41,35);
				color:white;
			}
		</style>
		<script src=" highlightExt.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body class="mdui-container mdui-typo">
		<h1 class="mdui-typo-title">拓展AI</h1>
		<hr >
		<p>此文档主要写如何使用GUIMaker的拓展：聊天AI</p>
		<blockquote>
		    <p>虽然GUIMaker只是用来做GUI的，可是它也有拓展，其中一个拓展便是聊天AI，尽管——这个AI有点笨</p>
		    <footer>——Toby</footer>
		  </blockquote>
		<p>说了这么多，其实很简单</p>
		<h1 class="mdui-typo-subtitle">示例：让AI聊天吧</h1>
		<pre><code>
from GUIMAKER import *
name = inputbox("给我起个名吧")
while True:
    text=inputbox('跟AI说点什么吧：')
    msgbox(ai.talk(msg=text,name=name))#小A是AI的名字
		</code></pre>
	</body>
</html>
